/**
 * @description 📚 路由参数配置简介
 * @param path ==> 路由菜单访问路径
 * @param name ==> 路由 name (对应页面组件 name)
 * @param component ==> 前端组件文件路径
 * @param meta ==> 路由菜单元信息
 * @param meta.icon ==> 菜单和面包屑对应的图标
 * @param meta.title ==> 路由标题 (用作 document.title || 菜单的名称)
 * @param meta.hidden ==> 是否在菜单中隐藏 (通常列表详情页需要隐藏)
 * @param meta.activeMenu ==> 激活左侧菜单位置（需写在二级路由后的嵌套路由每一个meta里，主要是为了页面处于嵌套路由中默认选中并高亮一级菜单）
 * @param meta.keepAlive ==> 当前路由是否缓存
 * @param redirect ==> 当点击面包屑目录时路由重定向地址（该属性需写在一级目录路由上）
 * */
export default [
    {
        path: '/users',
        name: 'Users',
        redirect: '/users/usersData',
        meta: {title: '用户管理', icon: 'Tickets', hidden: false},
        children: [
            {
                name: 'UsersData',
                path: '/users/usersData',
                component: '/users/index',
                meta: {
                    title: '用户分析',
                    icon: '',
                    keepAlive: false,
                    hidden: false,
                    tagHidden:true
                },
                children:[
                    {
                        name: 'UsersAnalyse',
                        path: '/users/usersAnalyse',
                        component: '/users/userAnalyse/index',
                        meta: {
                            title: '会员分析',
                            icon: '',
                            activeMenu:'/users/usersData',
                            keepAlive: false,
                            hidden: true,
                            tagHidden:true
                        }
                    },
                    {
                        name: 'UsersComuse',
                        path: '/users/userConsume',
                        component: '/users/userConsume/index',
                        meta: {
                            title: '会员消费分析',
                            icon: '',
                            activeMenu:'/users/usersData',
                            keepAlive: false,
                            hidden: true,
                            tagHidden:true
                        }, 
                    }
                ]
            },
            {
                name:'UserInfo',
                path:'/user/userInfo',
                component:'/user/index',
                meta:{
                    title:'用户画像概览',
                    hidden:true 
                }
            },
            {
                name:'BusinessAllocation',
                path:'/business/businessAllocation',
                component:'/business/businessAllocation/index',
                meta:{
                    title:'企业分配详情',
                    icon:'',
                    keepAlive: false,
                    hidden: false,
                    tagHidden:true
                },
                children:[{
                    name:'BusinessData',
                    path:'/business/businessAllocationPurchase/:id',
                    component:'/business/businessAllocationPurchase/index',
                    meta:{
                        title:'企业分配与购买',
                        icon:'',
                        activeMenu:'/business/businessAllocation',
                        keepAlive: false,
                        hidden: true,
                        tagHidden:true
                    },
                    children:[{
                        name:'SecondaryAccount',
                        path:'/business/businessAllocationPurchase/secondaryAccount/:id',
                        component:'/business/businessAllocationPurchase/secondaryAccount/index',
                        meta:{
                            title:'二级账户',
                            icon:'',
                            activeMenu:'/business/businessAllocation',
                            keepAlive: false,
                            hidden: true,
                            tagHidden:true
                        },
                    }]
                }]
            }
        ]
    }
]
